import React, { Component } from 'react'
import styles from './SearchInput.module.scss';
import {withRouter} from 'react-router-dom'
class SearchInput extends Component {
  handleClick=(params) => {
    console.log(this.props);
    this.props.history.push("searchCenter")
  }
  
  render() {
    return (
        <div className={styles.siOutBox} onClick={this.handleClick}>
          <div className={styles.siInnerBox}>
            <span className={styles.title}>搜索</span>
        </div>
      </div>
    )
  }
}
// 2.用withRouter高阶函数
export default withRouter(SearchInput)